package com.example.ecommercedemo.mapper;

import com.example.ecommercedemo.entity.Good;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface GoodMapper 
{
//    查询good
    public Good selectGoodByGid(Long gid);

//    查询good列表
    public List<Good> selectGoodList(Good good);
    //根据cid查询
    public Good selectGoodByCid(Long cid);
    //不分页查询good列表
    public List<Good> selectGoodListBynot(Good good);


//    新增good
    public int insertGood(Good good);

//    修改good
    public int updateGood(Good good);

//    删除good
    public int deleteGoodByGid(Long gid);

//    批量删除good
    public int deleteGoodByGids(Long[] gids);
}
